package bookstore;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;

public class Book {
    
    private int edad;
    private @Nonnull String autor;
    private @Nonnull String title;
    private @CheckForNull String subtitle;

    public @Nonnull String getAutor() {
        pruebaRefactor();
        System.out.println("Hola soy MILLAN");
        return autor;
    }

    public @Nonnull String getSubtitle() {
        return subtitle;
    }

    public @Nonnull String getTitle() {
        return title;
    }

    private void pruebaRefactor() {
        int x = 5;
        System.out.println(x);
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

}
